import Vue from 'vue'
import Router from 'vue-router'
import common from '@/components/common'
import index from '@/components/index'
import domain from '@/components/domain'
import site from '@/components/site'
import idc from '@/components/idc'
import email from '@/components/email'
import safe from '@/components/safe'
import oa from '@/components/oa'
import promotion from '@/components/promotion'
import help from '@/components/help'
import login from '@/components/login'
import register from '@/components/register'
import record from '@/components/record'
import commonbg from '@/components/vipcenter/commonBg'
import vip from '@/components/vipcenter/vip'
import basicdata from '@/components/vipcenter/account/basicdata.vue'
import security from '@/components/vipcenter/account/security'
import domainlist from '@/components/vipcenter/domain/domainlist.vue'
import template from '@/components/vipcenter/domain/template.vue'
import emaillist from '@/components/vipcenter/email/emaillist.vue'
import invoice from '@/components/vipcenter/fee/invoice.vue'
import order from '@/components/vipcenter/fee/order.vue'
import overview from '@/components/vipcenter/fee/overview.vue'
import service from '@/components/vipcenter/idc/service.vue'
import space from '@/components/vipcenter/idc/space.vue'
import allmessage from '@/components/vipcenter/message/allmessage.vue'
import alreadyread from '@/components/vipcenter/message/alreadyread.vue'
import manager from '@/components/vipcenter/message/manager.vue'
import noread from '@/components/vipcenter/message/noread.vue'
import ca from '@/components/vipcenter/safe/ca.vue'
import safeunion from '@/components/vipcenter/safe/safeunion.vue'
import sinceritywebsite from '@/components/vipcenter/safe/sinceritywebsite.vue'
import trustwebsite from '@/components/vipcenter/safe/trustwebsite.vue'
import domainlock from '@/components/vipcenter/valueservice/domainlock.vue'
import domainquery from '@/components/domain/domainquery.vue'
import priceoverview from '@/components/priceoverview.vue'

Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'index',
			redirect: '/index',
			component: common,
			children: [{
					path: '/index',
					component: index
				},
				{
					path: '/domain',
					component: domain
				},
				{
					path: '/site',
					component: site
				},
				{
					path: '/idc',
					component: idc
				},
				{
					path: '/email',
					component: email
				},
				{
					path: '/safe',
					component: safe
				},
				{
					path: '/oa',
					component: oa
				},
				{
					path: '/promotion',
					component: promotion
				},
				{
					path: '/help',
					component: help
				},
				{
					path: '/register',
					component: register
				},
				{
					path: '/login',
					component: login
				},
				{
					path: '/record',
					component: record
				},
				{
					path: '/priceoverview',
					component: priceoverview
				}
				,
				{
					path: '/domain/domainquery',
					component: domainquery
				}
			]
		},
		{
			path: '/bg',
			component: commonbg,
			children: [
			{
				path: '/vip',
				component: vip
			},
			{
				path: '/security',
				component: security
			},
			{
				path:'/basicdata',
				component: basicdata
			},
			{
				path:'/domainlist',
				component: domainlist
			},
			{
				path:'/template',
				component: template
			},
			{
				path:'/emaillist',
				component: emaillist
			},
			{
				path:'/invoice',
				component: invoice
			},
			{
				path:'/order',
				component: order
			},
			{
				path:'/overview',
				component: overview
			},
			{
				path:'/service',
				component: service
			},
			{
				path:'/space',
				component: space
			},
			{
				path:'/allmessage',
				component: allmessage
			},
			{
				path:'/alreadyread',
				component: alreadyread
			},
			{
				path:'/manager',
				component: manager
			},
			{
				path:'/noread',
				component: noread
			},
			{
				path:'/ca',
				component: ca
			},
			{
				path:'/safeunion',
				component: safeunion
			},
			{
				path:'/sinceritywebsite',
				component: sinceritywebsite
			},
			{
				path:'/trustwebsite',
				component: trustwebsite
			},
			{
				path:'/domainlock',
				component: domainlock
			}
			]
		}
	]
})